#include "dmr_bsp.h"
#include "dmr_log.h"
#include "dmr_delay.h"

#if defined(N32G430)

#include "n32g430.h"

#endif



#if defined(FREERTOS)

#endif




void dmr_bspInit(void)
{
	
	RCC_ClocksType RCC_ClocksStatus;
	
    RCC_Clocks_Frequencies_Value_Get(&RCC_ClocksStatus);
	
	dmr_delayInit();
	
	dmr_delayMs(10);
	
	NVIC_Priority_Group_Set(NVIC_PER2_SUB2_PRIORITYGROUP);
	
	dmr_logInit();
	
	printf("AdcHclkFreq\t= %dHz\r\n",RCC_ClocksStatus.AdcHclkFreq);
	printf("AdcPllClkFreq\t= %dHz\r\n",RCC_ClocksStatus.AdcPllClkFreq);
	printf("HclkFreq\t= %dHz\r\n",RCC_ClocksStatus.HclkFreq);
	printf("Pclk1Freq\t= %dHz\r\n",RCC_ClocksStatus.Pclk1Freq);
	printf("Pclk2Freq\t= %dHz\r\n",RCC_ClocksStatus.Pclk2Freq);
	printf("SysclkFreq\t= %dHz\r\n",RCC_ClocksStatus.SysclkFreq);
	
}

